<template>
  <el-table v-loading="loading" :data="tableData" stripe>
    <el-table-column prop="user.account" label="账号" align="center" width="100" />
    <el-table-column prop="user.userName" label="姓名" align="center" width="100" />
    <el-table-column prop="moduleName" label="模块名称" align="center" min-width="150" />
    <el-table-column prop="operate" label="执行操作" align="center" width="120" />
    <el-table-column prop="className" label="类名" align="center" min-width="350" />
    <el-table-column prop="methodName" label="方法名" align="center" min-width="150" />
    <el-table-column prop="requestIp" label="IP地址" align="center" width="150" />
    <el-table-column prop="requestUrl" label="请求URL" align="center" width="250" />
    <el-table-column prop="createTime" label="创建时间" align="center" width="150" />
  </el-table>
</template>

<script>
export default {
  props: {
    tableData: {
      type: Array,
      required: true,
      default: () => []
    },
    loading: {
      type: Boolean,
      required: true,
      default: () => false
    }
  }
}
</script>

<style lang="stylus" scoped>
.el-table
  margin-top 20px
</style>
